class Machine < ActiveRecord::Base

   #Validation
  validates_presence_of :latitude
  validates_presence_of :longitude
  validates_presence_of :status
  validates_presence_of :state
  validates_presence_of :zone
  validates_presence_of :model
  validates_presence_of :brand
  validates_presence_of :version
  validates_presence_of :os
  validates_presence_of :disc
  validates_presence_of :ram
  validates_presence_of :processor
  validates_presence_of :cant_ap

 
  #Relationsvalidates_presence_of :disc
  belongs_to :administrator
  has_many :gambles

end
